<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AlertUsersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('manager_users', function (Blueprint $table) {
            $table->string('avatar')->comment('头像');
            $table->string('cn_nickname')->unique()->comment('中文昵称');
            $table->string('en_nickname')->unique()->comment('英文昵称');
            $table->string('mobile_phone')->unique()->comment('手机号码');
            $table->string('qq_no')->unique()->comment('QQ号码');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('manager_users', function (Blueprint $table) {
            $table->dropColumn(['avatar','cn_nickname','en_nickname','mobile_phone','qq_no']);
        });
    }
}
